//
//  GGRoute.h
//  qqqqqq
//
//  Created by iOSer on 2017/3/3.
//  Copyright © 2017年 iOSer. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GGRouteRequest.h"
@class GGRouteHandler;
@interface GGRoute : NSObject
+(GGRoute *)shareGGRouterInstance;
-(void)registerBlock:(GGRouteRequest *(^)(GGRouteRequest *request))routeHandlerBlock forRoute:(NSString *)route;
-(void)registerHandlers;
-(void)registerHandler:(GGRouteHandler *)handler forRoute:(NSString *)route;
-(BOOL)canHandleWithURL:(NSURL *)url;
-(void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
-(id)objectForKeyedSubscript:(NSString *)key;
-(BOOL)handleURL:(NSURL *)URL primitiveParameters:(NSDictionary *)primitiveParameters isJumpMothod:(JumpMethod)Method isShowNav:(BOOL)isShowNav NAVTitle:(NSString *)navTitle isNavAnimation:(BOOL)isNavAnimation targetCallBack:(void (^)(NSError *error, id responseObject))targetCallBack withCompletionBlock:(void (^)(BOOL handled, NSError *error))completionBlock;
@end
